import request from '@/utils/request'

// 查询云课堂专辑列表
export function listProject(query) {
  return request({
    url: '/informfrontend/projectBack/list',
    method: 'get',
    params: query
  })
}

// 查询云课堂专辑详细
export function getProject(id) {
  return request({
    url: '/informfrontend/projectBack/' + id,
    method: 'get'
  })
}

// 新增云课堂专辑
export function addProject(data) {
  return request({
    url: '/informfrontend/projectBack',
    method: 'post',
    data: data
  })
}

// 修改云课堂专辑
export function updateProject(data) {
  return request({
    url: '/informfrontend/projectBack',
    method: 'put',
    data: data
  })
}

// 删除云课堂专辑
export function delProject(id) {
  return request({
    url: '/informfrontend/projectBack/' + id,
    method: 'delete'
  })
}
